package com.sztx.pay.center.core.service.util;

import com.sztx.pay.center.common.util.Constance.BindCardType;

public enum SettleType {
	
	NOW(1, "立即结算"),
	LATTER(2, "定时结算");

	private int value;
	
	private String name;
	
	private SettleType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public static SettleType valueOf(int value){
		switch (value) {
		case 1:			
			return NOW;
		case 2:
			return LATTER;
		default:
			return null;
		}		
	}
}
